<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/6/9
  Time: 11:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>学生信息修改页面</title>
    <style>
        a {
            text-decoration: none;
            color: #000;
            font-size: 40px;
        }

        #style {
            width: 90%;
            margin: 0 auto;
        }

        table {
            width: 100%;
            color: white;
            font-size: 30px;
        }

        input[type="text"] {
            width: 100%;
            height: 40px;
            font-size: 30px;
            color: white;
            border: none;
            background: none;
            line-height: 50px;
        }

        a {
            width: 100%;
            height: 40px;
            font-size: 30px;
            color: white;
            border: none;
            background: none;
            line-height: 40px;
        }
    </style>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
    %>
</head>
<body style="background: #58958d">

<a href="http://localhost:8080/user/users" style="text-decoration: none;color: white;font-size: 30px">
    <img src="<%=basePath%>resources/imgs/back.png" style="width: 30px;height: 30px">返回学生列表
</a>
<div id="style" style="margin-top: 40px">
    <h1 style="color: white">学生信息修改：</h1>
    <sf:form method="post" modelAttribute="user" action="/user/update">
        <table border="1px" style="border: 1px solid white">
            <tr>
                <td>学生学号</td>
                <td><sf:input type="text" path="userId"/></td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td><sf:input type="text" path="username"/></td>
            </tr>
            <tr>
                <td>密码:</td>
                <td><sf:input type="text" path="password"/></td>
            </tr>
            <tr>
                <td>个人介绍:</td>
                <td><sf:input type="text" path="description"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <div style="width: 100px;margin: 0 auto"><input type="submit" name="submit" value="保存" style="width: 100px;height: 50px;line-height:50px;background:cadetblue;opacity: .8;font-size: 30px;color: white;border-radius: 2px;border: none"/></div>
                </td>
            </tr>
        </table>
    </sf:form>
</div>
</body>
</html>
